﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FizzDevelop
{
	public partial class SaveDialog : Form
	{
		public SaveDialog(List<FizzFileTab> files)
		{
			InitializeComponent();
			foreach (FizzFileTab file in files)
			{
				FileCheckList.Items.Add(file.Text, CheckState.Checked);
			}
			FileCheckList.Select();
		}

		public DialogResult ShowDialog(out CheckedListBox.CheckedItemCollection checkedItems)
		{
			DialogResult result = base.ShowDialog();
			checkedItems = FileCheckList.CheckedItems;
			return result;
		}
	}
}
